﻿package mortal.game.view.relive
{
    import Message.Public.*;
    import com.mui.utils.*;
    import mortal.game.mvc.*;
    import mortal.game.view.relive.parts.*;
    import mortal.mvc.interfaces.*;

    public class RelivePanelForce extends RelivePanelBase
    {
        private var _leftSecondsPart:ReliveLeftSecondPart;

        public function RelivePanelForce(param1:ILayer = null)
        {
            super(param1);
            return;
        }// end function

        override public function setLeftTime(param1:int) : void
        {
            this._leftSecondsPart.setLeftTime(param1, this.timerOutHandler);
            return;
        }// end function

        private function timerOutHandler() : void
        {
            GameProxy.sceneProxy.relive(ERevival._ERevivalForce);
            return;
        }// end function

        override protected function createDisposedChildrenImpl() : void
        {
            super.createDisposedChildrenImpl();
            this._leftSecondsPart = UICompomentPool.getUICompoment(ReliveLeftSecondPart) as ReliveLeftSecondPart;
            this._leftSecondsPart.x = sx + 208;
            this._leftSecondsPart.y = sy + 74;
            this._leftSecondsPart.showHideBtn(false);
            this.addChild(this._leftSecondsPart);
            return;
        }// end function

        override protected function disposeImpl(param1:Boolean = true) : void
        {
            super.disposeImpl(param1);
            this._leftSecondsPart.dispose(param1);
            this._leftSecondsPart = null;
            return;
        }// end function

    }
}
